const crypto = require('crypto');
const secret = "drillfmis"; //密钥
module.exports = function(d) {
	const hmac = crypto.createHmac('sha1', secret.toString('ascii'));
	hmac.update(d);
	return hmac.digest('hex');
}
